package com.liao.furns.dao.impl;

import com.liao.furns.dao.AdminDao;
import com.liao.furns.dao.BasicDAO;
import com.liao.furns.pojo.Admin;
import com.liao.furns.pojo.Member;

/**
 * @author lzp
 * @version 1.0
 * lzpnb!
 */
public class AdminDaoImpl extends BasicDAO<Admin> implements AdminDao {
    public Admin queryMemberByUsernameAndPassword(String username, String password) {
        String sql = "SELECT * FROM `admin` WHERE `username` =? AND `password` = MD5(?)";
        return querySingle(sql, Admin.class,username,password);
    }
}
